﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace VikingArcade_v2._0
{
    public class Display
    {
        public Display()
        {
            
        }

        public void Draw(IEnumerable<IDrawer> drawers)
        {
            DisplayController.GraphicsDevice.Clear(Color.Black);

            SpriteBatch spriteBatch = new SpriteBatch(DisplayController.GraphicsDevice);

            spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.NonPremultiplied);

            foreach (IDrawer drawer in drawers)
            {
                drawer.Draw(spriteBatch);
            }

            spriteBatch.End();
        }
    }
}
